Unix - Get Mounted Partitions

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
specki
Posts: 32
Joined: Thu Jun 09, 2011 5:49 am
Location: Cologne, Germany

Unix - Get Mounted Partitions

Post by specki »

I just noticed that he gave me a partition is not displayed and do not know why. When I run df you will see me but the script does not do that.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Unix - Get Mounted Partitions

Post by noname »

Perform this:
% perl /your_cacti_path/scripts/query_unix_partitions.pl query total

If you saw errors..
A) Modify the script to work on your environment
B) Use alternative data query
specki
Posts: 32
Joined: Thu Jun 09, 2011 5:49 am
Location: Cologne, Germany

Re: Unix - Get Mounted Partitions

Post by specki »

hmm ok
what alternative are there so? the script is actually only on the server running Cacti? Because all servers have the script with the same partitions and sizes. This is not correct
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Unix - Get Mounted Partitions

Post by noname »

>> what alternative are there so?

- "SNMP - Get Mounted Partitions"
- "ucd/net - Get Monitored Partitions"
- http://docs.cacti.net/usertemplate:data:host_mib:disk_usage

>> the script is actually only on the server running Cacti?

It uses "df" command.
specki
Posts: 32
Joined: Thu Jun 09, 2011 5:49 am
Location: Cologne, Germany

Re: Unix - Get Mounted Partitions

Post by specki »

I know that he used df. Therefore I wanted to ask if he also performs the remote
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Unix - Get Mounted Partitions

Post by noname »

>> I know that he used df. Therefore I wanted to ask if he also performs the remote

Sorry, I'm not sure about it.
specki
Posts: 32
Joined: Thu Jun 09, 2011 5:49 am
Location: Cologne, Germany

Re: Unix - Get Mounted Partitions

Post by specki »

ok I know this, that script is running df. Now my question:
Executes the script on the server only on the Cacti is from or even on other servers.
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Unix - Get Mounted Partitions

Post by noname »

>> Executes the script on the server only on the Cacti is from or even on other servers.

Did you say as this meaning?
"When I executed the script (query_unix_partitions.pl) on remote server, can Cacti retrieve its result from that server?"
specki
Posts: 32
Joined: Thu Jun 09, 2011 5:49 am
Location: Cologne, Germany

Re: Unix - Get Mounted Partitions

Post by specki »

yes that i mean
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: Unix - Get Mounted Partitions

Post by noname »

Hmm.

Probably it can be done with rexec/rsh or something similar,
but I recommend to run snmpd (e.g. NET-SNMP) on the remote server
and retrieve the information via SNMP by using alternative data query (mentioned at the above post).
specki
Posts: 32
Joined: Thu Jun 09, 2011 5:49 am
Location: Cologne, Germany

Re: Unix - Get Mounted Partitions

Post by specki »

i use a alternative methode and solve so my problem
thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest